# -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required, permission_required
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
from django.contrib.contenttypes.models import ContentType
from django.core import serializers
from django.core.urlresolvers import reverse
from django.db import transaction
from django.db.models import Q, Count
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.template import loader, Context, RequestContext
from django.utils.encoding import StrAndUnicode, force_unicode, smart_unicode, smart_str
from settings import STATIC_ROOT, VERSION

def my_context(context):
	'''
	our context processor. Add to dict vars to send in ALL templates.
	'''
	return {'VERSION': VERSION}

@login_required
def index(request):
	return render_to_response('index.html',RequestContext(request))

def to_index(request):
	return redirect(index)
